﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="DataSet1" targetNamespace="http://tempuri.org/DataSet1.xsd" xmlns:mstns="http://tempuri.org/DataSet1.xsd" xmlns="http://tempuri.org/DataSet1.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
  <xs:annotation>
    <xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
      <DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
        <Connections>
          <Connection AppSettingsObjectName="MySettings" AppSettingsPropertyName="TravConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="TravConnectionString (MySettings)" PropertyReference="ApplicationSettings.AdminPanel.My.MySettings.GlobalReference.Default.TravConnectionString" Provider="System.Data.OleDb" />
        </Connections>
        <Tables>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="membersTableAdapter" GeneratorDataComponentClassName="membersTableAdapter" Name="members" UserDataComponentName="membersTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="TravConnectionString (MySettings)" DbObjectName="Travian.dbo.members" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [Travian].[dbo].[members] WHERE (([Member_ID] = ?) AND ([Member_Name] = ?) AND ((? = 1 AND [Access_lvl] IS NULL) OR ([Access_lvl] = ?)) AND ([Race_ID] = ?))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="Original_Member_ID" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="Member_ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="Original_Member_Name" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="Member_Name" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="IsNull_Access_lvl" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="Access_lvl" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="Original_Access_lvl" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="Access_lvl" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="Original_Race_ID" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="Race_ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [Travian].[dbo].[members] ([Member_Name], [Access_lvl], [Race_ID]) VALUES (?, ?, ?)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="Member_Name" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="Member_Name" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="Access_lvl" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="Access_lvl" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="Race_ID" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="Race_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT Member_ID, Member_Name, JoinDate, Access_lvl, Race_ID FROM dbo.members</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [Travian].[dbo].[members] SET [Member_Name] = ?, [Access_lvl] = ?, [Race_ID] = ? WHERE (([Member_ID] = ?) AND ([Member_Name] = ?) AND ((? = 1 AND [Access_lvl] IS NULL) OR ([Access_lvl] = ?)) AND ([Race_ID] = ?))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="Member_Name" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="Member_Name" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="Access_lvl" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="Access_lvl" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="Race_ID" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="Race_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="Original_Member_ID" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="Member_ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="Original_Member_Name" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="Member_Name" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="IsNull_Access_lvl" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="Access_lvl" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="Original_Access_lvl" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="Access_lvl" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="Original_Race_ID" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="Race_ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="Member_ID" DataSetColumn="Member_ID" />
              <Mapping SourceColumn="Member_Name" DataSetColumn="Member_Name" />
              <Mapping SourceColumn="JoinDate" DataSetColumn="JoinDate" />
              <Mapping SourceColumn="Access_lvl" DataSetColumn="Access_lvl" />
              <Mapping SourceColumn="Race_ID" DataSetColumn="Race_ID" />
            </Mappings>
            <Sources />
          </TableAdapter>
        </Tables>
        <Sources />
      </DataSource>
    </xs:appinfo>
  </xs:annotation>
  <xs:element name="DataSet1" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="True" msprop:Generator_DataSetName="DataSet1" msprop:Generator_UserDSName="DataSet1">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="members" msprop:Generator_TableClassName="membersDataTable" msprop:Generator_TableVarName="tablemembers" msprop:Generator_TablePropName="members" msprop:Generator_RowDeletingName="membersRowDeleting" msprop:Generator_UserTableName="members" msprop:Generator_RowChangingName="membersRowChanging" msprop:Generator_RowEvHandlerName="membersRowChangeEventHandler" msprop:Generator_RowDeletedName="membersRowDeleted" msprop:Generator_RowEvArgName="membersRowChangeEvent" msprop:Generator_RowChangedName="membersRowChanged" msprop:Generator_RowClassName="membersRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="Member_ID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnMember_ID" msprop:Generator_ColumnPropNameInRow="Member_ID" msprop:Generator_ColumnPropNameInTable="Member_IDColumn" msprop:Generator_UserColumnName="Member_ID" type="xs:int" />
              <xs:element name="Member_Name" msprop:Generator_ColumnVarNameInTable="columnMember_Name" msprop:Generator_ColumnPropNameInRow="Member_Name" msprop:Generator_ColumnPropNameInTable="Member_NameColumn" msprop:Generator_UserColumnName="Member_Name">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="20" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="JoinDate" msdata:ReadOnly="true" msprop:Generator_ColumnVarNameInTable="columnJoinDate" msprop:Generator_ColumnPropNameInRow="JoinDate" msprop:Generator_ColumnPropNameInTable="JoinDateColumn" msprop:Generator_UserColumnName="JoinDate" type="xs:base64Binary" minOccurs="0" />
              <xs:element name="Access_lvl" msprop:Generator_ColumnVarNameInTable="columnAccess_lvl" msprop:Generator_ColumnPropNameInRow="Access_lvl" msprop:Generator_ColumnPropNameInTable="Access_lvlColumn" msprop:Generator_UserColumnName="Access_lvl" type="xs:int" minOccurs="0" />
              <xs:element name="Race_ID" msprop:Generator_ColumnVarNameInTable="columnRace_ID" msprop:Generator_ColumnPropNameInRow="Race_ID" msprop:Generator_ColumnPropNameInTable="Race_IDColumn" msprop:Generator_UserColumnName="Race_ID" type="xs:int" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
    <xs:unique name="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:members" />
      <xs:field xpath="mstns:Member_ID" />
    </xs:unique>
  </xs:element>
</xs:schema>